<section class="wrapper">
  <!-- page start-->
  <div class="row">
    <div class="col-lg-12">
      <section class="panel">
        <header class="panel-heading">
          查 看&nbsp&nbsp <a href="/admin/levels/<%= @level.id %>/edit"><button class="btn btn-info" type="button">修改</button></a>
        </header>
        <div class="panel-body">
          <form class="form-horizontal adminex-form" >
            <div class="form-group">
              <label class="col-sm-2 col-sm-2 control-label"><i class="bi_tian">*&nbsp</i>学号</label>
              <div class="col-sm-10">
                <input type="number" name="student_no" value="<%= @level.student_no %>" class="form-control" placeholder="请输入学号">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 col-sm-2 control-label"><i class="bi_tian">*&nbsp</i>姓名</label>
              <div class="col-sm-10">
                <input type="text" name="name" value="<%= @level.name %>" class="form-control" placeholder="请输入姓名">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 col-sm-2 control-label"><i class="bi_tian">*&nbsp</i>会员开始日期</label>
              <div class="col-sm-10">
                <input type="text" name="start_time" value="<%= @level.start_time.to_s[0..10] %>" class="form-control" placeholder="请输入姓名">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 col-sm-2 control-label"><i class="bi_tian">*&nbsp</i>会员结束日期</label>
              <div class="col-sm-10">
                <input type="text" name="end_time" value="<%= @level.end_time.to_s[0..10] %>" class="form-control" placeholder="请输入姓名">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 col-sm-2 control-label">性别</label>
              <div class="col-sm-10">
                <input type="text" name="sex" value="<%= get_dict(:sex)[@level.sex.to_s] %>" class="form-control">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 col-sm-2 control-label">电话</label>
              <div class="col-sm-10">
                <input type="number" name="phone" value="<%= @level.phone %>" class="form-control" placeholder="请输入数字">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 col-sm-2 control-label">学院</label>
              <div class="col-sm-10">
                <input type="text" name="academy_id" value="<%= (academy = get_data_by_pid('id', @level.academy_id, Academy)).blank? ? '' : academy.first.name %>" class="form-control">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 col-sm-2 control-label">专业</label>
              <div class="col-sm-10">
                <input type="text" name="major_id" value="<%= (major = get_data_by_pid('id', @level.major_id, Major)).blank? ? '' : major.first.name %>" class="form-control">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 col-sm-2 control-label">邮箱</label>
              <div class="col-sm-10">
                <input type="email" name="mail" value="<%= @level.mail %>" class="form-control" placeholder="请输入邮箱">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 col-sm-2 control-label">宿舍地址</label>
              <div class="col-sm-10">
                <input type="text" name="location" value="<%= @level.location %>" class="form-control" placeholder="请输入地址">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 col-sm-2 control-label">籍贯</label>
              <div class="col-sm-10">
                <input type="text" name="native_place" value="<%= @level.native_place %>" class="form-control" placeholder="请输入籍贯">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 col-sm-2 control-label">紧急联系人姓名</label>
              <div class="col-sm-10">
                <input type="text" name="emer_name" value="<%= @level.emer_name %>" class="form-control" placeholder="请输入紧急联系人姓名">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 col-sm-2 control-label">紧急联系人电话</label>
              <div class="col-sm-10">
                <input type="number" name="emer_phone" value="<%= @level.emer_phone %>" class="form-control" placeholder="请输入紧急联系人电话">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 col-sm-2 control-label">状态</label>
              <div class="col-sm-10">
                <input type="text" name="sex" value="<%= get_dict(:status)[@level.status.to_s] %>" class="form-control" placeholder="请输入姓名">
              </div>
            </div>
          </form>
        </div>
      </section>
    </div>
  </div>
  <!-- page end-->
</section>